package com.cykj.feign;


import com.cykj.dto.ResponseDTO;
import com.cykj.feign.impl.CyGoodControllerFeignFactoryImpl;
import com.cykj.feign.impl.CyGoodControllerOpenFeignImpl;
import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "jd-product-service",path = "/good" ,fallbackFactory = CyGoodControllerFeignFactoryImpl.class)
public interface CyGoodControllerOpenFeign {

    @RequestMapping("/updateStock")
    ResponseDTO updateGoodStock(
            @RequestParam("goodId") Integer goodId,
            @RequestParam("count") Integer count);
}
